﻿using System;
namespace CRMS.Models
{
    public class TeacherUseClassroomInfo
    {
        private Classroom cr;
        private TeacherCourse tc;

        public TeacherUseClassroomInfo(Classroom cr, TeacherCourse tc)
        {
            this.cr = cr;
            this.tc = tc;
        }
        //获取教学楼名称
        public string  TeachingBuildingName 
        {
            get
            {
                return cr.TeachingBuilding.TeachingBuildingName;
            }
            
        }
        //获取楼层
        public string Floor
        {
            get
            {
                return cr.Floor;
            }
        }
        //获取教室号
        public int ClassroomId
        {
            get
            {
                return cr.ClassroomId;
            }
        }
        //获取教师姓名
        public string TeacherName
        {
            get
            {
                return tc.Teacher.TeacherName;
            }
        }
        //获取课程名
        public string CourseName
        {
            get
            {
                return tc.Course.CourseName;
            }
        }
        //获取工作日
        public string Weekday
        {
            get
            {
                return tc.Weekday;
            }
        }
        //获取上课时间段
        public string Period
        {
            get
            {
                return tc.Period;
            }
        }
    }
}
